15. Remote SIM Access (RSA) Commands > 15.2 AT^SRSM   Remote SIM Access Message

15.2
AT^SRSM   Remote SIM Access Message
The AT^SRSM command is used to transfer SAP messages between devices acting as SAP server and client. It is applicable for XSAP data format only, for details please refer to the <dataForm> parameter of the AT^SRSA command. The write command transports SAP messages to an SAP server or SAP client.
Syntax
Test Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Unsolicited Result Code
^SRSM: <RsaDevId>, <RsaMsgId>[, <RsaMsgData>[, <RsaMsgLen>[, <RsaMsgRc>]]]
This URC is issued by an ME acting as SAP server or client to transfer SAP message data.

Parameter Description
 
RSA device identification
Number assigned by the host on RSA activation via AT^SRSA, parameter <devId>.
 
RSA message identification
For details refer to Section 15.2.1, SAP Request Message Parameters and Section 15.2.2, SAP Response Mes­sage Parameters.
 
RSA message data
For details refer to Section 15.2.1, SAP Request Message Parameters and Section 15.2.2, SAP Response Mes­sage Parameters.
 
RSA message data length
For details refer to Section 15.2.1, SAP Request Message Parameters and Section 15.2.2, SAP Response Mes­sage Parameters.
 
RSA message result code
For details refer to Section 15.2.1, SAP Request Message Parameters and Section 15.2.2, SAP Response Mes­sage Parameters.
 
SAP parameter MaxMsgSize
Handling of this parameter is as follows:
•
If the TC65 is acting as SAP client the requested value of <MaxMsgSize> is 300. During SAP connection setup this value may be negotiated with the server to the minimal value 274, which is calculated by 256 data bytes as part of a TRANSFER_APDU_RESP message plus a 16 byte SAP header and two status bytes. If the server does not accept this value range no SAP connection will be established.
•
If the TC65 is acting as SAP server it requires that a <MaxMsgSize> value of 276 will be accepted by a connected client.
 
SAP parameter Connection Status
 
SAP parameter Disconnection Type
 
SAP parameter Command APDU or Command APDU7816
 
SAP parameter Command APDU length
 
SAP parameter Response APDU
 
SAP parameter Response APDU length
 
<ATR>(str)
SAP parameter ATR
 
SAP parameter ATR length
 
SAP parameter Result Code
 
SAP parameter Card Reader Status
 
SAP parameter Status Change
 
SAP parameter Transport Protocol


Example

The following example shows how to establish an RSA connection.
 
ME now starts sending SAP message CONNECTION_REQ on dedicated RSA channel.